#include <sys/epoll.h>
#include <stdlib.h>
#include <netinet/in.h>
#include <sys/socket.h>
#include <unistd.h>
#include "my_error.h"
#include "thread_pool.h"

extern  void setnonblocking(int fd);
//extern  int  close(int fd);
//extern  int  read(int fd,char *buff,int len);

int epoll_init(int size);

int epoll_add(int ep,int fd,int event,int flags);

int epoll_read(int fd,char **buf,int *len);

int epoll_del(int ep,int fd);

int epoll_wait_new_connect(int ep,int listen_fd,struct epoll_event *events,int maxevents,int timeout);

int epoll_done(int ep);
